const getWindowInfo = () => {
    const windowInfo = {
        width: window.innerWidth
    }
    document.documentElement.style.fontSize = windowInfo.width / 10 + 'px'
};
window.addEventListener('resize', getWindowInfo);